package system.model;

import java.util.Date;

import com.agile.jfinal.model.CoreModel;
import com.jfinal.ext.plugin.tablebind.TableBind;

/**
* 数据库表对应的Model类，继承了CoreModel
* @author qiutian 
* @date 2013-12-19
*/
@TableBind(tableName="sm_user",pkName="pk_user") 
public class SmUser extends CoreModel<SmUser>{

	public static final SmUser dao = new SmUser();

	public static final String PK_USER = "pk_user";   //主键
	public static final String USERNAME = "username";   //用户名
	public static final String PASSWORD = "password";   //密码
	public static final String PNAME = "pname";   //姓名
	public static final String LAST_IP = "last_ip";   //最后访问IP
	public static final String USER_TYPE = "user_type";   //用户类型
	public static final String STATUS = "status";   //用户状态
	public static final String PK_PARENT = "pk_parent";   //父主键
	public static final String CREATE_BY = "create_by";   //制单人
	public static final String CREATE_DATE = "create_date";   //制单时间
	public static final String OPERATOR = "operator";   //操作员
	public static final String TS = "ts";   //时间戳
	public static final String DR = "dr";   //删除标记
	public static final String COLUMN_1 = "column_1";   //预留字段1
	public static final String COLUMN_2 = "column_2";   //预留字段2
	public static final String COLUMN_3 = "column_3";   //预留字段3
	public static final String COLUMN_4 = "column_4";   //预留字段4
	public static final String COLUMN_5 = "column_5";   //预留字段5


	/**数据库中的表名*/
	@Override
	public String getTableName() {
		// TODO Auto-generated method stub
		return "sm_user";
	}


	/**主键字段名称*/
	@Override
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
		return PK_USER;
	}


}
